<?php  
include('connpress/templates/head.php'); ?>
<title><?php echo $title;?></title>
<meta name="description" content="<?php echo $metadescription;?>" />
<?php include('connpress/templates/meta.php'); ?>
<div id="content">
<h2><a href="<?php echo $url;?>.php" title="<?php echo $title; ?>"><?php echo $title; ?></a></h2>
<div style="border-bottom:1px dashed #ccc;">
<p style="text-transform:uppercase;font-size:12px;color:#5f6975;"><?php echo $metadescription; ?></p>
<p style="text-transform:uppercase;font-size:11px;color:#252525;"><?php echo ($pagedate); ?></p>
</div>
<?php
$referrer = $_SERVER['HTTP_REFERER'];
$my_domain = "http://connga.com";
$search_engines = "google|yahoo|bing|altavista|digg";
$pattern = "((http(s)?://)(\w+?\.)?(?!{$my_domain})({$search_engines}))";
if (preg_match("/{$search_engines}/i", $referrer) != false) {
    echo <<<END
<!-- COMING SOON -->
END;
} else {
    // Show something to visitors not referred by a search engine
}
?>
